package com.hymjweb.demo.framework.util;

public class MyStringBuffer {
	StringBuffer sb = null;

	public MyStringBuffer() {
		sb = new StringBuffer();
	}
	
	public MyStringBuffer append(String value) {
		sb.append(value);
		return this;
	}
	
	public MyStringBuffer append_n(String value) {
		sb.append("\n").append(value);
		return this;
	}

	@Override
	public String toString() {
		return sb.toString();
	}

	public int length() {
		return sb.length();
	}

	public void clear() {
		sb.setLength(0);
	}
}
